package com.mbyte.easy.sign.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mbyte.easy.common.entity.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lp
 * @since 2020-06-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_sign")
public class Sign extends BaseEntity {

    private static final long serialVersionUID = 1;
    //上午开始结束时间
    public static final String AMSTARTTIME = "  08:59:00";
    public static final String AMOVERTIME = " 11:59:00";
    //下午开始结束时间
    public static final String PMSTARTTIME = " 13:59:00";
    public static final String PMOVERTIME = " 17:59:00";
    //晚上开始结束时间
    public static final String NIGHTSTARTTIME = " 18:59:00";
    public static final String NIGHTOVERTIME = " 20:59:00";

    //一整天开始结束时间
    public static final String ALLDAYSTARTTIME = " 00:01:00";
    public static final String ALLDAYOVERTIME = " 23:59:00";

    /**
     * 打卡人员id
     */
    private Long userId;

    /**
     * 班级编号
     */
    private Long classId;

    /**
     * 所属班级名字(wq202.6.16)
     */
    @TableField(exist = false)
    private String className;

    /**
     * 打卡人姓名(wq202.6.16)
     */
    @TableField(exist = false)
    private String name;

    /**
     * 打卡状态1代表已打卡
     */
    private Integer signStatus;

    /**
     * 打卡时间(wq202.6.16)
     */
    @TableField(exist = false)
    private String stimeSpace;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 删除时间
     */
    private LocalDateTime deleteTime;

    /**
     * 删除状态（0不为删除，1为删除）
     */
    private Integer deleteStatus;


}
